<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <title>vTeam</title>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  {{include "inc_52framework.html"}}
  <link rel="stylesheet" type="text/css" href="{{=url_for_static('site.css')}}" media="screen" />
  <link rel="stylesheet" type="text/css" href="{{=url_for_static('forms.css')}}" media="screen" />
</head>
<body>
    <div class="container">
    <div class="top_header">
        {{block userinfo}}
            <div class="align_right">
                {{if request.user:}}
                    Welcome! {{=request.user.username}}(<a href="/settings">Admin</a>) | <a href="/logout">Logout</a>
                {{else:}}
                    You haven't signed in! <a href="/login">Sign In</a> | <a href="/register">Register</a>
                </form>
                {{pass}}
            </div>
            <div class="clear"></div>
        {{end}}
    </div>
    {{block header}}
    <header class="col_16 center">
    <div class="logo">vTeam Project</div>
    {{block nav}}
    <nav>
    	<ul>
            {{block menu}}
        	<li><a href="/"><span>Home</span></a></li>
            <li><a href="/group"><span>Group</span></a></li>
            <li><a href="/user"><span>User</span></a></li>
            <li><a href="/about"><span>About</span></a></li>
            {{end}}
        </ul>
    </nav>
    {{end}}
    </header>
    {{end}}
    {{block flash}}
    {{if request.session.get('_flashed_messages'):}}
        <div class="row align_center">
            {{include "inc_show_flashes.html"}}
        </div>
    {{pass}}
    {{end}}
    {{block sidebar}}
    {{end}}
    {{block content}}
    {{end}}
    {{block footer}}
    <footer>
        <div class="align_center">
        This site is designed by Limodou. CSS framework comes from <a href="http://www.52framework.com/">52framework</a>. Have questions? Contact me at limodou@gmail.com.
        </div>
    </footer>
    {{end}}
    </div>
</body>
</html>